package com.dongdongshop.service;

import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.pojo.TbItem;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface GoodsService {
    int insertGoods(TbGoods tbGoods, TbGoodsDesc tbGoodsDesc, List<TbItem> tbItems, String sellerName, Long parentId);

    PageInfo<TbGoods> getListGoods(String goodsName, String auditStatus, Integer pageNumber, Integer pageSize);

    int updateGoodsAuditStatus(Long[] ids, String auditStatus);

    TbGoods getGoodsById(Long goodsId);

    TbGoodsDesc getGoodsDescById(Long goodsId);
}
